package com.hnucm.shopapp.network.service;

import com.hnucm.shopapp.bean.BaseBean;
import com.hnucm.shopapp.bean.User;

import java.util.List;

import io.reactivex.rxjava3.core.Flowable;
import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.POST;

public interface UserService {
    @POST("userService/user/findUserByAccount")
    Flowable<BaseBean<List<User>>> getUserByAccount(@Body RequestBody body);

    @POST("userService/user/addUser")
    Flowable<BaseBean<Boolean>> addUser(@Body RequestBody body);
}
